import request from '@/utils/request'

// 查询菜单列表
export function listActApps(query) {
  return request({
    url: '/act/actconf/actApp/tableTree',
    method: 'post',
    data: query
  })
}


export function findById(query) {
  return request({
    url: '/act/actconf/actApp/findById',
    method: 'post',
    data: query
  })
}


export function genAppCode(query) {
  return request({
    url: '/act/actconf/actApp/genAppCode',
    method: 'post',
    data: query
  })
}

export function addNewApp(query) {
  return request({
    url: '/act/actconf/actApp/add',
    method: 'post',
    data: query
  })
}

export function updateApp(query) {
  return request({
    url: '/act/actconf/actApp/modify',
    method: 'post',
    data: query
  })
}

export function delActApp(menuId) {
  return request({
    url: '/act/actconf/actApp/delete?id='+menuId,
    method: 'get'
  })
}


export function findActAppLabel() {
  return request({
    url: '/act/actconf/actApp/listActAppLabel',
    method: 'get'
  })
}
